import request from '@/utils/request'


export function createYzComment(data) {
  return request({
    url: '/api/YzComment/save',
    method: 'post',
    data
  })
}

export function delYzComment(id) {
  return request({
    url: '/api/YzComment/del/'+id,
    method: 'post'
  })
}


export function batchDel(data) {
  return request({
    url: '/api/YzComment/batch/del',
    method: 'post',
    data
  })
}

export function editYzComment(data) {
  return request({
    url: '/api/YzComment/update',
    method: 'post',
    data
  })
}



export function getInfo(id) {
  return request({
    url: '/api/YzComment/get/'+id,
    method: 'get',
    params: { id }
  })
}


export function getPageYzComment(query) {
  return request({
    url: '/api/YzComment/getPage',
    method: 'post',
    data: query
  })
}

export function getListYzComment(query) {
  return request({
    url: '/api/YzComment/getList',
    method: 'post',
    data: query
  })
}




